<!-- xiaomu封装的组件：居民关系小卡片 -->
<template>
  <div class="mu-family-item flex-ct">
    <img class="avatar" src="../assets//u1575.jpg">
    <div class="info">
      <p class="top flex-ct">
        <span class="name">李清</span>
        <span class="age">58岁</span>
        <img class="gender-icon" src="../assets//u1576.png">
      </p>
      <p>关系：父母</p>
    </div>
  </div>
</template>

<script setup lang="ts">

</script>

<style scoped lang="scss">
.mu-family-item {
  width: 224px;
  height: 84px;

  margin-left: 20px;

  border: 1px solid #F2F2F2;
  border-radius: 6px;

  cursor: pointer;

  .avatar {
    width: 40px;
    height: 40px;

    margin-right: 20px;
  }

  .gender-icon {
    transform: rotate(-45deg);
  }

  p {
    font-size: 12px;
    color: #999;
  }

  .name {
    font-size: 16px;
    color: #333;
  }

  .age {
    margin: 0 20px 0 10px;
  }

  .top {
    margin-bottom: 10px;
  }
}

.mu-family-item:hover {
  box-shadow: 0 0 16px #F2F2F2;
}
</style>